﻿namespace PillBox.Client.Converters
{
    using System;
    using System.Globalization;
    using System.Windows.Data;

    public class ToUppercaseConverter : IValueConverter
    {
        private static readonly StringFormatConverter _stringFormatConverter = new StringFormatConverter();

        public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
        {
            return _stringFormatConverter.Convert(value, targetType, parameter, culture).ToString().ToUpper();
        }

        public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
        {
            throw new NotImplementedException();
        }
    }
}